package com.wxy;

import org.jasypt.util.text.BasicTextEncryptor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import com.wxy.domain.DSUAP;

//对用户名和密码的保护
@SpringBootTest
public class example2 {
	@Autowired
	private DSUAP dsuap;
	//@Test
	public void test() {
		BasicTextEncryptor textEncryptor=new BasicTextEncryptor();
		textEncryptor.setPassword("jasyptSalt123");
		String username=textEncryptor.encrypt("root");
		String password=textEncryptor.encrypt("13579");
		System.out.println(username+">>"+password);
	}
	@Test
	public void test2() {
		System.out.println(dsuap.toString());
	}
}
